package ru.ifmo.rybakov.muclumon;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

@Entity
@DiscriminatorValue("S")
public class StringValue extends PropertyValue {
	@Column(name = "string_value", nullable = false)
	private String value;

	public StringValue(Property property, String value) {
		setProperty(property);
		this.value = value;
	}
	
	protected StringValue() {}
	
	/**
	 * @return the value
	 */
	public String getValue() {
		return value;
	}

	/**
	 * @param value the value to set
	 */
	public void setValue(String value) {
		this.value = value;
	}
}
